<?php
ob_start();?><?php
include("config.php");
require_once("auth.php");
$pid=$_POST['ddlProductId'];
$oid=$_POST['ddlOrderId'];
$price=$_POST['txtPrice'];
$qty=$_POST['txtQuantity'];
$size=$_POST['txtSize'];
$tt=$_POST['txtTotal'];

$id=$_POST['id'];
$data=mysql_query("update orderdetails  set OrderID='$oid',ProductID='$pid',Price='$price',Quantity='$qty',Total='$tt' where OrderDetailID=$id");

if($data)
{
header("location: displayorderdeatils.php?updated=updated");
}
else
{
echo mysql_error();
}

?>
